internal/strconv.decimal.nd (field)
45 uses
internal/strconv (current package)
atof.go#L110: b.dp = b.nd
atof.go#L115: if s[i] == '0' && b.nd == 0 { // ignore leading zeros
atof.go#L119: if b.nd < len(b.d) {
atof.go#L120: b.d[b.nd] = s[i]
atof.go#L121: b.nd++
atof.go#L133: b.dp = b.nd
atof.go#L327: if d.nd == 0 {
decimal.go#L16: nd int // number of digits used
decimal.go#L23: n := 10 + a.nd
decimal.go#L34: case a.nd == 0:
decimal.go#L44: w += copy(buf[w:], a.d[0:a.nd])
decimal.go#L46: case a.dp < a.nd:
decimal.go#L51: w += copy(buf[w:], a.d[a.dp:a.nd])
decimal.go#L55: w += copy(buf[w:], a.d[0:a.nd])
decimal.go#L56: w += digitZero(buf[w : w+a.dp-a.nd])
decimal.go#L72: for a.nd > 0 && a.d[a.nd-1] == '0' {
decimal.go#L73: a.nd--
decimal.go#L75: if a.nd == 0 {
decimal.go#L95: a.nd = 0
decimal.go#L97: a.d[a.nd] = buf[n]
decimal.go#L98: a.nd++
decimal.go#L100: a.dp = a.nd
decimal.go#L117: if r >= a.nd {
decimal.go#L120: a.nd = 0
decimal.go#L137: for ; r < a.nd; r++ {
decimal.go#L159: a.nd = w
decimal.go#L271: if prefixIsLessThan(a.d[0:a.nd], leftcheats[k].cutoff) {
decimal.go#L275: r := a.nd // read index
decimal.go#L276: w := a.nd + delta // write index
decimal.go#L306: a.nd += delta
decimal.go#L307: if a.nd >= len(a.d) {
decimal.go#L308: a.nd = len(a.d)
decimal.go#L317: case a.nd == 0:
decimal.go#L336: if nd < 0 || nd >= a.nd {
decimal.go#L339: if a.d[nd] == '5' && nd+1 == a.nd { // exactly halfway - round to even
decimal.go#L355: if nd < 0 || nd >= a.nd {
decimal.go#L367: if nd < 0 || nd >= a.nd {
decimal.go#L370: a.nd = nd
decimal.go#L376: if nd < 0 || nd >= a.nd {
decimal.go#L385: a.nd = i + 1
decimal.go#L393: a.nd = 1
decimal.go#L405: for i = 0; i < a.dp && i < a.nd; i++ {
ftoa.go#L214: return fmtEFG(dst, neg, d.d[:], d.dp, d.nd, prec, fmt, false)
ftoa.go#L344: return fmtEFG(dst, neg, d.d[:], d.dp, d.nd, prec, fmt, false)